/**
 *게시판과 관련된 자바스크립트
 *날짜 : 2014.11
 *이름 : 안종휘 
 */
var btnMain, btnInput, btnModify, btnDelete, btnView;


function general(){//게시판에서 사용하는 공통 모듈
	btnMain=document.getElementById('btnList');
	if(btnMain !=null){
		btnMain.onclick=function(){
			location.href='main.jsp';
		}
	}
	btnInput=document.getElementById('btnInput');
	if(btnInput !=null){
		btnInput.onclick=function(){
			location.href='input.jsp';
		}
	}
	btnModify=document.getElementById('btnModify');
	if(btnModify !=null){
		btnModify.onclick=function(){
			location.href='modify.jsp';
		}
	}
	btnDelete=document.getElementById('btnDelete');
	if(btnDelete !=null){
		btnDelete.onclick=function(){
			location.href='delete_result.jsp';
		}
	}
	btnView=document.getElementById('btnlogin');
	if(btnlogin !=null){
		btnlogin.onclick=function(){
			location.href='login.jsp';
		}
	}

}
function goPage(page){
	location.href="view.jsp?page="+page;
}

function inputInit(){//input과 관련된 모듈
	general();
}

function loginInit(){
	general();
}

function mainInit(){
	general();
}

function modifyInit(){
	general();
}

function deleteInit(){
	general();
}